-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(events): add VPC Lattice request/response types #521
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #521 +/- ##
==========================================
- Coverage 72.90% 72.63% -0.27%
==========================================
Files 26 26
Lines 1421 1407 -14
==========================================
- Hits 1036 1022 -14
Misses 314 314
Partials 71 71 ☔ View full report in Codecov by Sentry. |
// VpcLatticeRequestIdentity contains information about the caller | ||
type VPCLatticeRequestIdentity struct { | ||
SourceVPCARN string `json:"sourceVpcArn"` | ||
Type string `json:"type"` | ||
Principal string `json:"principal"` | ||
SessionName string `json:"sessionName"` | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewing - https://docs.aws.amazon.com/vpc-lattice/latest/ug/lambda-functions.html#receive-event-from-service
missing identity fields
principalOrgID – The ID of the organization for the authenticated principal. Present only if AWS authentication is successful.
x509IssuerOu – The issuer (OU).
x509SanDns – The subject alternative name (DNS).
x509SanNameCn – The issuer alternative name (Name/CN).
x509SanUri – The subject alternative name (URI).
x509SubjectCn – The subject name (CN).
Issue #, if available: fixes #520
Description of changes:
Add events for VPC Lattice requests and response, based on https://docs.aws.amazon.com/vpc-lattice/latest/ug/lambda-functions.html and tests against a running Lambda function.